import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from "vuex-persistedstate"
import login from './login'
import home from './home'
import index from './indexPage'
import serve from './serve'
import event from './event'

Vue.use(Vuex)

const state = {

}

const mutations = {

}

const actions = {

}

const getters = {

}

const modules = {
	login,
	home,
	index,
	event,
	serve
}

const store = new Vuex.Store({
	state,
	mutations,
	actions,
	getters,
	modules,
	plugins: [createPersistedState({ storage: window.sessionStorage })]
})

export default store